package com.hxzy.shop.controller.merchant;

import com.hxzy.shop.feign.merchant.MerchantFeign;
import com.hxzy.shop.vo.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述:商户主体
 *
 * @author tonneyyy
 */
@RestController
@Api(tags = "商户主体")
@RequestMapping("/merchant")
public class MerchantController {

    @Autowired
    private MerchantFeign merchantFeign;


    /**
     * 商户门店数量限制
     * @return
     */
    @GetMapping(value = "/storeCount")
    public Result<Integer> selectStoreCount(){
        return this.merchantFeign.selectStoreCount();
    }
}
